package com.golxen.framework.log;


import com.golxen.framework.executor.GeneralTask;
import com.golxen.utils.LogUtil;

public class LogSaveTask extends GeneralTask {
    private static boolean running = false;

    @Override
    public void doRun() {
        if (!running) {
            running = true;
            try {
                LogMgr.instance.save();
            } catch (Exception e) {
                LogUtil.COMMON.error("save LogMgr error. ",e);
            }finally {
                running = false;
            }
        }
    }
}
